package utils

import (
	"fmt"
	"github.com/aliyun/aliyun-oss-go-sdk/oss"
	"os"
)

func ALiYunOSS() *oss.Bucket {
	client, err := oss.New("oss-cn-guangzhou.aliyuncs.com", "LTAI5tKADsT7VU87hwjJDoXS", "Qh3aFkdzPp6UZ4z4PkfPUqkjjXVj9m")
	if err != nil {
		fmt.Println("Error:", err)
		os.Exit(-1)
	}

	bucket, err := client.Bucket("lhj-blog-service")
	if err != nil {
		fmt.Println("Error:", err)
		os.Exit(-1)
	}
	return bucket
}
